Skip to content
This repository was archived by the owner on Aug 27, 2026. It is now read-only.

docs: deprecate html-loader in favor of webpack's built-in HTML support - #560

Merged
alexander-akait merged 2 commits into
mainfrom
claude/css-html-loader-deprecation-ec783u
Aug 27, 2026
Merged

docs: deprecate html-loader in favor of webpack's built-in HTML support#560
alexander-akait merged 2 commits into
mainfrom
claude/css-html-loader-deprecation-ec783u

Conversation

@alexander-akait

Copy link
Copy Markdown
Member

Summary

webpack treats HTML as a first-class module type — experiments.html defaults to "auto" since 5.109.0, so .html files are parsed, the resources their attributes reference are bundled and the markup is minified in production with no loader. Adds a deprecation notice at the top of the README linking the Native HTML guide and its migration guide, and noting that "auto" leaves an .html rule that already has a loader alone so existing setups keep working.

What kind of change does this PR introduce?

docs

Did you add tests for your changes?

n/a — README only, no code change.

Does this PR introduce a breaking change?

No.

If relevant, what needs to be documented once your changes are merged or what have you already documented?

Nothing further — https://webpack.js.org/loaders/html-loader/ is generated from this README, so the notice appears there on the next docs build. The /loaders index already marks the loader deprecated.

Use of AI

Yes — Claude Code drafted the notice and checked every linked anchor against the guides in webpack.js.org and the experiments.html version against webpack's schema and changelog. Reviewed and edited by me before pushing.


Generated by Claude Code

Webpack treats HTML as a first-class module type since experiments.html
defaults to "auto" in 5.109.0. Point the README at the Native HTML guide
and its migration guide on webpack.js.org.
@codecov

codecov Bot commented Aug 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.03%. Comparing base (a4956a6) to head (8f57331).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #560   +/-   ##
=======================================
  Coverage   93.03%   93.03%           
=======================================
  Files           7        7           
  Lines         660      660           
  Branches      217      216    -1     
=======================================
  Hits          614      614           
  Misses         37       37           
  Partials        9        9           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Drop the codemod suggestion and the per-option mapping from the README
notice; the migration guide is the place that tracks both.
@alexander-akait
alexander-akait merged commit da47cb4 into main Aug 27, 2026
15 of 19 checks passed
@alexander-akait
alexander-akait deleted the claude/css-html-loader-deprecation-ec783u branch August 27, 2026 16:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant